package com.wanjia.bpsapi.pojo.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class PlaceSuggestionResponse implements Serializable {
    private Integer status;

    private String message;

    private List<Result> result;

    @Data
    public static class Result implements Serializable {
        private String name;
        private Location location;
        private String uid;
        private String province;
        private String city;
        private Integer cityid;
        private String district;
        private Integer adcode;
        private String business;
        private String tag;
        private String address;
        private List<Child> children;
    }

    @Data
    public static class Location implements Serializable {
        private Double lat;
        private Double lng;
    }

    @Data
    public static class Child implements Serializable {
        private String uid;
        private String showName;
        private String name;
    }
}
